package com.zjb.home.boxingtu.activity.other;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.zjb.home.boxingtu.R;
import com.zjb.home.boxingtu.bean.LableBean;
import com.zjb.home.boxingtu.bean.LableImpl;
import com.zjb.home.boxingtu.view.other.ClockTextView;
import com.zjb.home.boxingtu.view.other.LableView;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class TextViewActivity extends AppCompatActivity {

    @BindView(R.id.clockTextView)
    ClockTextView clockTextView;
    @BindView(R.id.lableView)
    LableView lableView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text_view);
        ButterKnife.bind(this);
        clockTextView.setPattern("yyyy-MM-dd HH:mm:ss");
        List<LableImpl> lables = new ArrayList<>();
        lables.add(new LableBean(0,"节子"));
        lables.add(new LableBean(1,"节子"));
        lables.add(new LableBean(2,"节子"));
        lables.add(new LableBean(3,"节子"));
        lables.add(new LableBean(4,"节子"));
        lables.add(new LableBean(5,"节子"));
        lables.add(new LableBean(6,"节子"));
        lables.add(new LableBean(8,"节子"));
        lables.add(new LableBean(9,"节子"));
        lables.add(new LableBean(10,"节子"));
        lables.add(new LableBean(11,"节子"));
        lables.add(new LableBean(12,"节"));
        lables.add(new LableBean(13,"节子真棒"));
        lableView.addLables(lables);
    }
}
